<?php
	ini_set("display_errors",1);

	session_start(); 
	//session_destroy();
	require_once('params_connexion.php');
	require_once('dbmapper.php');
	$connexion = new PDO ($dns, $user, $password);
	DBMapper::init($connexion);
	require_once ("./include_generique.php");
	
	$module = isset($_GET['module']) ? $_GET['module'] : 'Accueil';
	require_once ("modules/mod_$module/mod_$module.php");
	$classeModule = "Mod$module";
	$moduleObjet = new $classeModule();

	//$moduleObjet = new $classeModule();
	
	/*if (isset($_SESSION['idConnecte'])){
		require_once ("modules/mod_Connexion/mod_EspaceMembre.php");
		$moduleObjet1 = new ModEspaceMembre();
	
	}
	else{*/
		require_once ("modules/mod_Connexion/mod_Connexion.php");
		$moduleObjet1 = new ModConnexion(1);
	//}
		
?>

<html>
	<head>
	</head>
		<meta http-equiv="content-type" content="text/html;charset=utf-8" />
	<?php
	
		//echo '<title>'.$moduleObjet->getTitre().'</title>';
	?>
	<body>
	<?php
		$moduleObjet1->display();
		$moduleObjet->display();
	?>
	</body>
</html>
